package com.qiangshi.alarmLog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qiangshi.common.annotation.Excel;
import com.qiangshi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报警数据对象 qs_alarm_log
 *
 * @author qiangshi
 * @date 2022-03-08
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QsAlarmLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 箱号
     */
    @Excel(name = "箱号")
    private Integer alarmCaseNumber;
    /**
     * alarm_type报警类型
     * 1:设备报警
     * 2:环境报警
     */
    @Excel(name = "报警类型",dictType = "qs_alarm_type")
    private Integer alarmType;
    /**
     * 对象名显示M点
     */
    @Excel(name = "对象名显示M点")
    private String objectName;
    /**
     * 报警描述
     */
    @Excel(name = "报警描述")
    private String alarmDescribed;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("alarmCaseNumber", getAlarmCaseNumber())
                .append("alarmType", getAlarmType())
                .append("objectName", getObjectName())
                .append("alarmDescribed", getAlarmDescribed())
                .append("deleted", getDeleted())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
